<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>test</title>
</head>
<body ng-app>
	
	<div ng-controller="myCont">
		{{name | uppercase}}
		1+2={{1+2}}
		{{3*10 | currency}}
		{{123.234 | number:2}}
		Name: <input ng-model="name" type="text"/>
      	<button ng-click="greet()">Greet</button>
      	{{a.b.c()}}
	</div>
	
	<script type="text/javascript" src="js/angular.min.js" ></script>
	<script type="text/javascript">
        function myCont ( $window, $scope ) {
        	$scope.name = "test";
        	$scope.myAlert = function () {
        		alert(9);
        	}
        	$scope.greet = function() {
			    ($window.mockWindow || $window).alert('Hello ' + $scope.name);
			    var a;
			    $window.alert(a);
			}
        }
    </script>
</body>
</html>
